SetBorderColor
Sets the border color to the current form.
Syntax
expression.SetBorderColor(r, g, b, bNone);
expression
- A variable that represents a ApiComboBoxForm class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
r | Required | byte | Red color component value. | |
g | Required | byte | Green color component value. | |
b | Required | byte | Blue color component value. | |
bNone | Required | boolean | Defines that border color will not be set. |
Returns
boolean
Example
This example sets the border color to the form.
let doc = Api.GetDocument();
let textForm = Api.CreateTextForm({"key": "Personal information", "tip": "Enter your first name", "required": true, "placeholder": "First name", "comb": true, "maxCharacters": 10, "cellWidth": 3, "multiLine": false, "autoFit": false});
let paragraph = doc.GetElement(0);
paragraph.AddElement(textForm);
textForm.SetBorderColor(255, 111, 61);